import axios from 'axios'

function upLoader(file, order, token) {

    let baseUrl = 'http://192.168.124.118'
    let params = new FormData()

    console.log(this.$cookies.get('token'))

    params.append('file', file.file)
    params.append('order', order)

    axios({
        method: "post",
        url: baseUrl + "/api/order/" + order + "/upload",
        data: params,
        headers: {
            "Content-Type": "multipart/form-data",
            Authorization: "Bearer " + token
        }
    }).then(res => {
        console.log(res)
    })

}